import axios from '../utils/request/request.js'

// 获取设备关联信息
export function getCampus(code) {
	return axios.post('/billiards-data/jnjy/big/screen/getCampus?campusCode=' + code)
}

export function getStudentFaceCount(code) {
	return axios.post('/billiards-data/jnjy/big/screen/getStudentFaceCount?campusId=' + code)
}

export function getCompletedCourseStudentList(code) {
	return axios.post('/billiards-data/jnjy/big/screen/getCompletedCourseStudentList?campusId=' + code)
}


export function getStudentCourseList(data) {
	return axios.post('/billiards-data/jnjy/big/screen/getStudentCourseList', data)
}

export function getStudentFaceList(data) {
	return axios.post('/billiards-data/jnjy/big/screen/getStudentFaceList', data)
}



export function updateStudentFace(data) {
	return axios.post('/billiards-data/jnjy/big/screen/updateStudentFace', data, {
		headers: {
			'Content-Type': 'multipart/form-data'
		}
	})
}

export function completedCourse(data) {
	return axios.post('/billiards-data/jnjy/big/screen/completedCourse', data, {
		headers: {
			'Content-Type': 'multipart/form-data'
		}
	})
}


export function getQrCode(data) {
	return axios.get('/billiards-data/jnjy/big/screen/getQrCode?url=' + data)
}


export function getCarouselList(code) {
	return axios.post('/billiards-data/jnjy/big/screen/getCarouselList?campusId=' + code)
}


export function checkManager(data) {
	return axios.post('/billiards-data/jnjy/big/screen/checkManager', data)
}
